Skip to content

usb: dwc2: masquerade split-interrupt transfers#6936

Merged
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
P33M:dwc2_masquerade
Jul 8, 2025
Merged

usb: dwc2: masquerade split-interrupt transfers#6936
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
P33M:dwc2_masquerade

Conversation

@P33M
Copy link
Copy Markdown
Contributor

@P33M P33M commented Jul 4, 2025

Second attempt at porting the dwc_otg hack to avoid dropped split transactions.

Transactions now "look OK" on the bus analyser but this needs more soak testing with different hub implementations.

@P33M P33M marked this pull request as ready for review July 8, 2025 09:21
P33M added 2 commits July 8, 2025 13:16
Masquerading Interrupt split transfers as Control puts the transfer into
the non-periodic handler in the hub. This stops the hub dropping
complete-split data in the microframe after a CSPLIT should have
arrived, improving resilience to host IRQ latency. Devices are none
the wiser - the handshake tokens are the same.

Originally devised by Hans Petter Selasky @ FreeBSD.

(v2: dwc2 needs an un-masquerade prior to channel interrupt handling)

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Control Setup phase transfers needs an 8 byte maxpacket override, or
drivers doing a GET with a small buffer as a split transaction would
cause broken transfers.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
@P33M P33M force-pushed the dwc2_masquerade branch from 9d4c59b to fbd7bc9 Compare July 8, 2025 12:16
@pelwell
Copy link
Copy Markdown
Contributor

pelwell commented Jul 8, 2025

GitHub notifications about status changes and pushes are hit and miss.

@pelwell pelwell merged commit 3829e1b into raspberrypi:rpi-6.12.y Jul 8, 2025
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jul 11, 2025
kernel: Add support for phy interrupts on BCM54213PE
See: raspberrypi/linux#6942

kernel: usb: dwc2: masquerade split-interrupt transfers
See: raspberrypi/linux#6936
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jul 11, 2025
kernel: Add support for phy interrupts on BCM54213PE
See: raspberrypi/linux#6942

kernel: usb: dwc2: masquerade split-interrupt transfers
See: raspberrypi/linux#6936
sairon added a commit to home-assistant/operating-system that referenced this pull request Aug 14, 2025
Raspberry Pi Linux update to 6.12.34 broken some USB devices, mostly USB-Serial
converters connected to Yellow, but there are reports of some other peripherals
connected to RPi boards too.

This is a known RPi upstream issue [1] fixed by a PR [2] that's not been merged
to RPi stable kernel yet. Applying patches from this PR fixes the issues.

Fixes #4228, refs #4229

[1] raspberrypi/linux#6941
[2] raspberrypi/linux#6936
sairon added a commit to home-assistant/operating-system that referenced this pull request Aug 14, 2025
Raspberry Pi Linux update to 6.12.34 broken some USB devices, mostly USB-Serial
converters connected to Yellow, but there are reports of some other peripherals
connected to RPi boards too.

This is a known RPi upstream issue [1] fixed by a PR [2] that's not been merged
to RPi stable kernel yet. Applying patches from this PR fixes the issues.

Fixes #4228, refs #4229

[1] raspberrypi/linux#6941
[2] raspberrypi/linux#6936
mahabubul470 pushed a commit to my-smart-homes/operating-system that referenced this pull request Dec 23, 2025
Raspberry Pi Linux update to 6.12.34 broken some USB devices, mostly USB-Serial
converters connected to Yellow, but there are reports of some other peripherals
connected to RPi boards too.

This is a known RPi upstream issue [1] fixed by a PR [2] that's not been merged
to RPi stable kernel yet. Applying patches from this PR fixes the issues.

Fixes home-assistant#4228, refs home-assistant#4229

[1] raspberrypi/linux#6941
[2] raspberrypi/linux#6936
@jose1711
Copy link
Copy Markdown

Related: #7282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants